* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.game-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-area, .computer-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.character {
    width: 150px;
    text-align: center;
}

.character img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.character-name {
    margin: 8px 0;
    font-size: 18px;
    color: #333;
}

.health-bar {
    height: 15px;
    background-color: #ddd;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    width: 100%;
    background-color: #4caf50;
    transition: width 0.3s ease;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    min-height: 150px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.gameplay-area {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.play-area {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.computer-play-zone, .player-play-zone, .interaction-zone {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    min-height: 200px;
}

.played-card {
    margin: 10px auto;
    width: 120px;
    height: 150px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.played-card img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.card {
    width: 80px;
    height: 110px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.computer-cards .card {
    background-color: #ddd;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #388e3c;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#game-message {
    padding: 15px;
    margin: 10px 0;
    min-height: 80px;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* 回合交替弹窗样式 */
.turn-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.turn-modal-content {
    background-color: white;
    padding: 40px 80px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: zoom-in 0.3s ease forwards;
    border: 5px solid;
    border-color: #4caf50; /* 默认为玩家回合颜色，将在JS中动态修改 */
}

@keyframes zoom-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
} 